from http.cookiejar import Cookie
from bs4 import BeautifulSoup
import requests
#请求头
headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0","Cookie":"JSESSIONID=0D045D77F45F4F1EE5185095AB6A00F5; Path=/; name=value"
}

url = "https://jwxt.gduf.edu.cn/jsxsd/pyfa/topyfamx"
resp = (requests.get(url,headers=headers).text)
soup = BeautifulSoup(resp,"html.parser")
schedules = soup.find_all("td")
for schedule in schedules:
    print(schedule.text)
resp.close()
















